<template>
  <div>
       <van-field label='账号' v-model='form.username'/>
       <van-field label='密码' v-model='form.password'/>
       <button @click="login">登录</button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      form:{}
    }
  },
  methods:{
    login(){
      this.axios.post('blogin',this.form)
      .then(res=>{
        alert(res.data.mes)
    })
    }
  }
}
</script>

<style>

</style>